package org.example;

import org.example.entity.User;
import org.example.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AopTest {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("AroundLoggerContext.xml");
        UserService service = (UserService) ctx.getBean("userService");
        User user = new User();
//        user.setId(1);
//        user.setUserName("test");
//        user.setPassword("123456");
//        user.setEmail("test@xxx.com");
        service.save(user);
    }
}
